import http from './http.js'

//上传图片
export function upload (file) {
  const form = new FormData()
  form.append('image', file)
  return http({
    method: 'post',
    url: '/manage/img/upload',
    headers: {
      'Content-Type': 'multipart/form-data'
    },
    data: form
  })
}